#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int pro = 1;
    for(int i = 0; i<n; i++)
        pro = pro * 2;
    cout<<"2^"<<n<<" = "<<pro;
}